/**
 * 标准化清单梳理，中办理流程的 api js
 */
import request from "@/utils/request";
//保存或更新办理流程图数据
export function saveOrUpdate(data) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/yxpz/handleProcedures/saveOrUpdate",
    method: "post",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    },
    data: data
  });
}

/**
 * 更具hdlOid查询办理流程数据
 * @param {*} hdlOid
 */
export function getHandleProcessByHdlOid(hdlOid) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      `/yxpz/handleProcedures/getHandleProcessByHdlOid/${hdlOid}`,
    method: "post",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    }
  });
}
